import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store/index'
import vuetify from './plugins/vuetify'
import Toasted from 'vue-toasted'
import VueMoment from 'vue-moment'
import moment from 'moment-timezone'
import 'moment/locale/zh-cn'
import * as filters from './filters/index'

import './permission'

Vue.config.productionTip = false

Vue.use(Toasted, {
  duration: 3000
});

Vue.use(VueMoment, {
  moment
});

Object.keys(filters).forEach(k => {
  Vue.filter(k, filters[k])
});

new Vue({
  router,
  store,
  vuetify,
  render: h => h(App)
}).$mount('#app')
